<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;

/**
 * @mixin think\Model
 */
class App extends Model
{
    //查询后
    public static function onAfterRead($data)
    {

    }
    //新增前
    public static function onBeforeInsert($data)
    {

    }
    //新增后
    public static function onAfterInsert($data)
    {

    }
    //更新前
    public static function onBeforeUpdate($data)
    {

    }
    //更新后
    public static function onAfterUpdate($data)
    {

    }
    //写入前
    public static function onBeforeWrite($data)
    {

    }
    //写入后
    public static function onAfterWrite($data)
    {

    }
    //删除前
    public static function onBeforeDelete($data)
    {

    }
    //删除后
    public static function onAfterDelete($data)
    {

    }
    //恢复前
    public static function onBeforeRestore($data)
    {

    }
    //恢复后
    public static function onAfterRestore($data)
    {

    }
}
